package com.nf.recruitment.dao;

import com.nf.recruitment.entity.Candidate;
import com.nf.recruitment.dto.CandidateDTO;
import com.nf.recruitment.dto.CandidateStatusDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CandidateMapper {
    /**
     * 获取应聘人员登记列表
     *
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<CandidateDTO> listCandidate(@Param("pageNum") int pageNum,
                                     @Param("pageSize") int pageSize,
                                     @Param("post") int post,
                                     @Param("degree") int degree);

    /**
     * 添加应聘人员记录
     *
     * @param candidate
     */
    void saveCandidate(Candidate candidate);


    void changeStatus(CandidateStatusDTO candidateStatus);
}
